package YunNotes.allnotes.model;

import java.util.Date;

/**
 * @author
 */
public class Note {

    //笔记的id，区分用户

    private int id;

    //用户的昵称

    private String userName;

    //笔记的num，笔记的序号

    private int num;

    //笔记的标题

    private String headline;

    //笔记内容

    private String content;

    //笔记是否公开

    private int publicity;

    //笔记属性名称

    private String label;

    //属性的序号（顺序）

    private int labelNum;

    //点赞数

    private int praisePoints;

    //浏览量

    private int pageView;

    //笔记的时间

    private Date createTime;

    //点赞人的id

    private String praiseId;

    //token

    private String token;

    //判定
    private int action;
    private String key;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPublicity() {
        return publicity;
    }

    public void setPublicity(int publicity) {
        this.publicity = publicity;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getLabelNum() {
        return labelNum;
    }

    public void setLabelNum(int labelNum) {
        this.labelNum = labelNum;
    }

    public int getPraisePoints() {
        return praisePoints;
    }

    public void setPraisePoints(int praisePoints) {
        this.praisePoints = praisePoints;
    }

    public int getPageView() {
        return pageView;
    }

    public void setPageView(int pageView) {
        this.pageView = pageView;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPraiseId() {
        return praiseId;
    }

    public void setPraiseId(String praiseId) {
        this.praiseId = praiseId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "{" + "\"id\":\"" + id + "\"," +
                "\"userName\":\"" + userName + "\"," +
                "\"num\":\"" + num + "\"," +
                "\"headline\":\"" + headline + "\"," +
                "\"content\":\"" + content + "\"," +
                "\"publicity\":\"" + publicity + "\"," +
                "\"label\":\"" + label + "\"," +
                "\"labelNum\":\"" + labelNum + "\"," +
                "\"praisePoints\":\"" + praisePoints + "\"," +
                "\"pageView\":\"" + pageView + "\"," +
                "\"createTime\":\"" + createTime + "\"," +
                "\"praiseId\":\"" + praiseId + "\"," +
                "\"token\":\"" + token + "\"," +
                "\"action\":\"" + action + "\"," +
                "\"key\":\"" + key + "\"" +
                "}";
    }
}
